﻿<%@ Page Language="c#" ContentType="text/html" ResponseEncoding="utf-8" Async="true" MasterPageFile="~/administration/list_private.master" %>
<%@ MasterType VirtualPath="~/administration/list_private.master" %>
<script language="c#" runat="server">
string filePath = "";
	void Page_Load (object o, EventArgs e) {
			if(this.Master is ACM.cmsarea08.Administration.Core.ListerPrivate) {
				((ACM.cmsarea08.Administration.Core.ListerPrivate)this.Master).adm_button.Visible=false;	
			}		
			if(Request.Params["Q"]==null ) {
				Azzera();
			}
			if(Request.Params["Q"].ToString()=="" ) {
				Azzera();
			}	
			filePath = Request.Params["Q"].ToString();
			if( !System.IO.File.Exists(Server.MapPath(filePath)) ) {
				Azzera();
			}
			srcXML.DataFile = filePath;
			
	}
	
	void Azzera() {
		xmlTree.Visible=false;	
	}


</script>
<asp:Content ID="PageBody" Runat="server" ContentPlaceHolderID="MasterBody">
Informazioni Sui Componenti Installati<br/>
    <div id="install_complete" runat="server">
    	<asp:XmlDataSource id="srcXML" runat="server" DataFile="" ></asp:XmlDataSource>
        <asp:treeview id="xmlTree" runat="server" DataSourceID="srcXML" ImageSet="Faq">
            <DataBindings>
                <asp:TreeNodeBinding DataMember="install_log" TextField="Name" />
                <asp:TreeNodeBinding DataMember="event" Text="Evento" Value="Evento" SelectAction="Expand" />
                <asp:TreeNodeBinding DataMember="description" TextField="#InnerText" SelectAction="None" />
                <asp:TreeNodeBinding DataMember="command" FormatString="Comando {0}"  TextField="#InnerText" SelectAction="None" />
                <asp:TreeNodeBinding DataMember="errors" FormatString="Errori <br/>{0}" TextField="#InnerText" SelectAction="None" />
                <asp:TreeNodeBinding DataMember="uninstall" SelectAction="None" TextField="#InnerText" />
            </DataBindings>
		</asp:treeview> 
    </div>
</asp:content>